package com.itrustsolution.rms.entities;
// Generated 04 Agu 11 19:17:33 by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * RskRiskCauseType generated by hbm2java
 */
@Entity
@Table(name="rsk_risk_cause_type"
    ,catalog="rms"
)
public class RskRiskCauseType  implements java.io.Serializable {


     private Integer riskCauseTypeId;
     private String riskCauseTypeName;
     private boolean riskCauseTypeIsactive;
     private boolean riskCauseTypeIsdeleted;
     private Set<RskRiskCause> rskRiskCauses = new HashSet(0);

    public RskRiskCauseType() {
    }

	
    public RskRiskCauseType(String riskCauseTypeName, boolean riskCauseTypeIsactive, boolean riskCauseTypeIsdeleted) {
        this.riskCauseTypeName = riskCauseTypeName;
        this.riskCauseTypeIsactive = riskCauseTypeIsactive;
        this.riskCauseTypeIsdeleted = riskCauseTypeIsdeleted;
    }
    public RskRiskCauseType(String riskCauseTypeName, boolean riskCauseTypeIsactive, boolean riskCauseTypeIsdeleted, Set rskRiskCauses) {
       this.riskCauseTypeName = riskCauseTypeName;
       this.riskCauseTypeIsactive = riskCauseTypeIsactive;
       this.riskCauseTypeIsdeleted = riskCauseTypeIsdeleted;
       this.rskRiskCauses = rskRiskCauses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="RISK_CAUSE_TYPE_ID", unique=true, nullable=false)
    public Integer getRiskCauseTypeId() {
        return this.riskCauseTypeId;
    }
    
    public void setRiskCauseTypeId(Integer riskCauseTypeId) {
        this.riskCauseTypeId = riskCauseTypeId;
    }
    
    @Column(name="RISK_CAUSE_TYPE_NAME", nullable=false, length=50)
    public String getRiskCauseTypeName() {
        return this.riskCauseTypeName;
    }
    
    public void setRiskCauseTypeName(String riskCauseTypeName) {
        this.riskCauseTypeName = riskCauseTypeName;
    }
    
    @Column(name="RISK_CAUSE_TYPE_ISACTIVE", nullable=false)
    public boolean isRiskCauseTypeIsactive() {
        return this.riskCauseTypeIsactive;
    }
    
    public void setRiskCauseTypeIsactive(boolean riskCauseTypeIsactive) {
        this.riskCauseTypeIsactive = riskCauseTypeIsactive;
    }
    
    @Column(name="RISK_CAUSE_TYPE_ISDELETED", nullable=false)
    public boolean isRiskCauseTypeIsdeleted() {
        return this.riskCauseTypeIsdeleted;
    }
    
    public void setRiskCauseTypeIsdeleted(boolean riskCauseTypeIsdeleted) {
        this.riskCauseTypeIsdeleted = riskCauseTypeIsdeleted;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="rskRiskCauseType")
    public Set<RskRiskCause> getRskRiskCauses() {
        return this.rskRiskCauses;
    }
    
    public void setRskRiskCauses(Set<RskRiskCause> rskRiskCauses) {
        this.rskRiskCauses = rskRiskCauses;
    }




}


